package whf.shop.service;

import whf.framework.exception.FindException;
import whf.framework.security.entity.User;
import whf.shop.entity.Member;

/**
 * 服务对象接口
 * 
 * @author wanghaifeng
 * @email king@126.com
 * @modify 2007-01-11
 */
public interface MemberService extends whf.framework.service.Service<Member> {

	/**
	 * 根据用户搜索Member
	 * @modify wanghaifeng Jan 12, 2007 11:25:11 AM
	 * @param user
	 * @return 用户对应的会员
	 * @throws FindException
	 */
	public Member findByUser(User user) throws FindException;
	
	/**
	 * @modify wanghaifeng Apr 8, 2007 4:26:44 PM
	 * @param login
	 * @return
	 * @throws FindException
	 */
	public Member findByLogin(String login) throws FindException;
}